
/* 文章 详情 */


/* 文章头部 */
.article-header {
    margin-bottom: 2rem;
}

.article-header .category-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.article-header .cat-photo {
    background-color: #fce7f3;
    color: #c026d3;
}

.article-header .article-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

/* 作者信息 */
.article-header .author-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.article-header .author-section .author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.article-header .author-section .author-info {
    flex: 1;
}

.article-header .author-section .author-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: #111827;
    margin-bottom: 4px;
}

.article-header .author-section .author-bio {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 8px;
}

.article-header .author-section .post-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: #9ca3af;
}

.article-header .author-section .author-actions {
    display: flex;
    gap: 10px;
}

.follow-btn {
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 6px 16px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.follow-btn:hover {
    background-color: #2563eb;
}

.follow-btn.following {
    background-color: white;
    color: #3b82f6;
    border: 1px solid #3b82f6;
}

/* 文章内容 */
.article-content {
    font-size: 1.1rem;
    color: #374151;
    margin-bottom: 3rem;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 2.5rem 0 1.5rem;
    color: #111827;
}

.article-content .article-image {
    width: 100%;
    border-radius: 12px;
    margin: 2rem 0;
}

.article-content .image-caption {
    text-align: center;
    font-size: 0.9rem;
    color: #6b7280;
    margin-top: -1.5rem;
    margin-bottom: 2rem;
}

.article-content .quote-block {
    border-left: 4px solid #3b82f6;
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background-color: #eff6ff;
    font-style: italic;
    color: #1e40af;
}

/* 文章标签 */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 2.5rem 0;
    padding: 1.5rem;
    background-color: #f9fafb;
    border-radius: 12px;
}

.article-tags .tag-item {
    padding: 6px 14px;
    background-color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #4b5563;
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
}

.article-tags .tag-item:hover {
    background-color: #eff6ff;
    color: #2563eb;
    border-color: #dbeafe;
    text-decoration: none;
}

/* 文章操作区 */
.article-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background-color: white;
    border-radius: 12px;
    margin-bottom: 3rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.article-actions .action-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.article-actions .action-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4b5563;
}

.article-actions .action-stats .stat-item i {
    font-size: 1.2rem;
}

.article-actions .action-buttons {
    display: flex;
    gap: 10px;
}

.article-actions .action-buttons .action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
}

.article-actions .action-buttons .like-btn {
    background-color: #fef2f2;
    color: #dc2626;
}

.article-actions .action-buttons .like-btn:hover, .like-btn.liked {
    background-color: #dc2626;
    color: white;
}

.article-actions .action-buttons .bookmark-btn {
    background-color: #fffbeb;
    color: #d97706;
}

.article-actions .action-buttons .bookmark-btn:hover, .bookmark-btn.saved {
    background-color: #d97706;
    color: white;
}

.article-actions .action-buttons .share-btn {
    background-color: #eff6ff;
    color: #2563eb;
}

.article-actions .action-buttons .share-btn:hover {
    background-color: #2563eb;
    color: white;
}

/* 评论区 */
.comments-section {
    margin-bottom: 3rem;
}

.comments-section .section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comments-section .section-title i {
    color: #3b82f6;
}

/* 评论输入框 */
.comments-section .comment-input-container {
    background-color: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.comments-section .comment-input-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.comments-section .user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.comments-section .comment-textarea {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 1rem;
    resize: none;
    min-height: 100px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.comments-section .comment-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.comments-section .comment-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
    gap: 10px;
}

.comments-section .cancel-btn {
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 6px 16px;
    font-weight: 500;
    color: #4b5563;
    transition: background-color 0.2s;
}

.comments-section .cancel-btn:hover {
    background-color: #f3f4f6;
}

.comments-section .submit-btn {
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 6px 16px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.comments-section .submit-btn:hover {
    background-color: #2563eb;
}

/* 评论列表 */
.comments-section .comments-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.comments-section .comments-list .comment-item {
    background-color: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.comments-section .comments-list .comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.comments-section .comments-list .comment-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.comments-section .comments-list .comment-author-info {
    display: flex;
    flex-direction: column;
}

.comments-section .comments-list .comment-author-name {
    font-weight: 500;
    color: #111827;
}

.comments-section .comments-list .comment-time {
    font-size: 0.8rem;
    color: #9ca3af;
}

.comments-section .comments-list .comment-content {
    color: #374151;
    margin-bottom: 1rem;
}

.comments-section .comments-list .comment-footer {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.comments-section .comments-list .comment-action {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #9ca3af;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.2s;
}

.comments-section .comments-list .comment-action:hover {
    color: #3b82f6;
}

.comments-section .comments-list .comment-action.liked {
    color: #dc2626;
}

/* 回复 */
.comments-section .comments-list .replies-container {
    margin-top: 1rem;
    margin-left: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
}

.comments-section .comments-list .replies-container .reply-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f3f4f6;
}

.comments-section .comments-list .replies-container .reply-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.comments-section .comments-list .replies-container .reply-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.comments-section .comments-list .replies-container .reply-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.comments-section .comments-list .replies-container .reply-author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.comments-section .comments-list .replies-container .reply-content {
    font-size: 0.95rem;
    color: #374151;
    margin-bottom: 0.5rem;
}

.comments-section .comments-list .replies-container .reply-to {
    color: #3b82f6;
    font-weight: 500;
}

.comments-section .comments-list .replies-container .reply-footer {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.comments-section .comments-list .replies-container .reply-input-container {
    margin-top: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.comments-section .comments-list .replies-container .reply-textarea {
    flex: 1;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.9rem;
    resize: none;
    min-height: 80px;
}

.comments-section .comments-list .replies-container .reply-actions {
    display: flex;
    gap: 10px;
    margin-top: 0.5rem;
}


/***********************************/

.article-meta {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.article-meta .author-info {
    display: flex;
    align-items: center;
}

.article-meta .author-info .author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
}

.article-meta .author-info .author-name {
    font-weight: 600;
    font-size: 1.05rem;
}

.article-meta .author-info .author-badge {
    display: inline-block;
    background-color: #eef0ff;
    color: #4263eb;
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    margin-left: 0.5rem;
}

.article-meta .author-info .post-date {
    color: #6c757d;
    font-size: 0.9rem;
}

.article-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.article-categories .article-category {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background-color: #eef0ff;
    color: #4263eb;
    border-radius: 6px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.article-categories .article-category:hover {
    background-color: var(--primary);
    color: white;
}


/* 文章操作区 */

.article-actions .action-group {
    display: flex;
    gap: 1.5rem;
}

.article-actions .action-group .action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 0.95rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.article-actions .action-group .action-btn:hover {
    background-color: var(--light-gray);
    color: var(--primary);
}

.article-actions .action-group .action-btn i {
    font-size: 1.1rem;
}

.article-actions .action-group .action-btn.liked {
    color: #e74c3c;
}

.article-actions .action-group .action-btn.saved {
    color: var(--secondary);
}

.article-actions .share-buttons {
    display: flex;
    gap: 0.75rem;
}

.article-actions .share-buttons .share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-gray);
    color: var(--text-gray);
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.article-actions .share-buttons .share-btn:hover {
    background-color: var(--primary);
    color: white;
}

/* 作者信息区 */
.author-profile {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background-color: #e8eff5;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.author-profile .profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-right: 1.5rem;
    object-fit: cover;
}

.author-profile .profile-info {
    flex-grow: 1;
}

.author-profile .profile-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.author-profile .profile-bio {
    color: #6c757d;
    margin-bottom: 1rem;
    max-width: 600px;
}

.author-profile .follow-btn {
    background-color: #4263eb;
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.author-profile .follow-btn:hover {
    background-color: #3654d2;
}

.author-profile .follow-btn.following {
    background-color: transparent;
    color: #6c757d;
    border: 1px solid var(--border-color);
}

.follow-btn.following:hover {
    background-color: var(--light-gray);
    color: var(--dark-gray);
}


/***********************************/

/* 响应式调整 */
@media (max-width: 992px) {
    .article-header .article-title {
        font-size: 1.8rem;
    }

    .article-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .article-actions .action-stats {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .article-header .article-title {
        font-size: 1.5rem;
    }

    .article-header .author-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .article-actions .action-buttons {
        width: 100%;
        justify-content: space-between;
    }

    .related-articles .related-list {
        grid-template-columns: 1fr;
    }

    .author-profile {
        flex-direction: column;
        text-align: center;
    }

    .profile-avatar {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .article-actions .action-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .article-actions .action-buttons {
        flex-wrap: wrap;
    }

    .article-actions .action-buttons .action-btn {
        flex: 1;
        justify-content: center;
    }

    .comments-section .comments-list .replies-container {
        margin-left: 0;
    }
}
